<?php

namespace app\admin\model;


class Materialimage extends Base
{
    // 表名
    protected $name = 'bd_materialimage';


    public function material()
    {
        return $this->hasOne("Material", 'id','fk_bdl_bd_material',[],"LEFT")->setEagerlyType(0);
    }

    public function surface()
    {
        return $this->hasOne("Surface", 'id','fk_bdl_bd_surface',[],"LEFT")->setEagerlyType(0);
    }

    public function materialco()
    {
        return $this->hasOne("Material", 'id','fk_bdl_bd_material');
    }

    public function surfaceco()
    {
        return $this->hasOne("Surface", 'id','fk_bdl_bd_surface');
    }

}
